package com.example.hanfu_bk.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import com.example.hanfu_bk.pojo.Style;

import java.util.List;

@Mapper
public interface ListMapper {

    @Select("select style.name,style.define,style.feature,style.img,style.implication,style.use "+
    "from category,type,style " +
    "where category.id=type.category_id "+
    " and type.id=style.type_id "+
    " and category.id=#{id} ")
    List<Style> getList(Integer id);
}
